package com.lfc.guavaobserver;

import java.util.ArrayList;
import java.util.List;

public class EventBusClient {
    public static void main(String[] args) {
        UserController controller = new UserController();
        List<Object> observerList=new ArrayList<>();
        observerList.add(new MailObserver());
        observerList.add(new SMSObserver());
        controller.setObserverList(observerList);
        controller.register("张三");
    }
}
